package ch.bfh.abcm.rems.konfiguration;

public class EventMessage {

    public enum EventType {
        START_DATAMINING,
        STOP_DATAMINING,
        START_VALIDATION_JOB,
        STOP_VALIDATION_JOB,
        UPDATE_SENSORCONFIG,
        UPDATE_NETWORK_CONFIG;
    }
    
    private EventType eventType;
    private String additionalInfo;

    public EventMessage(EventType eventType, String additionalInfo) {
        this.eventType = eventType;
        this.additionalInfo = additionalInfo;
    }
    
    public EventMessage(EventType eventType) {
        this.eventType = eventType;
        this.additionalInfo = "-";
    }

    public EventType getEventType() {
        return eventType;
    }

    public void setEventType(EventType eventType) {
        this.eventType = eventType;
    }

    public String getAdditionalInfo() {
        return additionalInfo;
    }

    public void setAdditionalInfo(String additionalInfo) {
        this.additionalInfo = additionalInfo;
    }

    @Override
    public String toString() {
        return "EventMessage [eventType=" + eventType + ", additionalInfo=" + additionalInfo + "]";
    }
    
}
